From: Florian Müllner Date: Fri, 17 Mar 2023 00:05:48 +0000 (+0100) Subject: main: Fix syncing animations-enabled X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~371^2^2~92 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2f196f4b0bd5d67943bb163baa9116c6b92d3fc7;p=gnome-shell.git main: Fix syncing animations-enabled Whether or not animations should be enabled depends on various factors, some of which may change at runtime. We therefore track changes, and sync the setting by calling inhibit/uninhibit as necessary. Except that we never actually record the new state, so when animations are disabled, we end up inhibiting them every time the setting is synced, whoops. Part-of: --- diff --git a/js/ui/main.js b/js/ui/main.js index 16c1eef9f..cf9357f0f 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -963,6 +963,7 @@ var AnimationsSettings = class { const shouldEnableAnimations = this._shouldEnableAnimations(); if (this._animationsEnabled === shouldEnableAnimations) return; + this._animationsEnabled = shouldEnableAnimations; const settings = St.Settings.get(); if (shouldEnableAnimations)